Skip to content

Fix error message when deleting without delete privilege #1247

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

dimitri-yatsenko
Copy link
Member

No description provided.

@github-actions github-actions bot added enhancement Indicates new improvements documentation Issues related to documentation labels Jul 3, 2025
@dimitri-yatsenko dimitri-yatsenko requested review from Copilot, kushalbakshi and ttngu207 and removed request for kushalbakshi July 3, 2025 21:26
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances error handling for cascade deletes when foreign key info is missing, updates logging calls for deprecation consistency, and ensures SQL parsing emits any trailing statements.

  • Add final yield in parse_sql to return residual statements.
  • Replace deprecated logger.warn with logger.warning and adjust log messages.
  • Improve cascade delete error path: detect missing foreign key info and raise a clear DataJointError.

Reviewed Changes

Copilot reviewed 3 out of 13 changed files in this pull request and generated 1 comment.

File Description
datajoint/utils.py Yield any remaining SQL statement after parsing.
datajoint/table.py Update log calls, refine cascade delete error handling, remove deprecated show_definition.
datajoint/autopopulate.py Minor documentation tweaks for step numbering and signal handler comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Issues related to documentation enhancement Indicates new improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant